package com.currency.core;


public class FileMock {
	private String[] content;
	private int index;

	public FileMock(int size) {
		content = new String[size];
		for (int i = 0; i < size; i++) {
			StringBuffer buffer = null;
			for (int j = 0; j < 10; j++) {
				buffer = new StringBuffer();
				buffer.append((char) (Math.random()));
			}
			content[i] = buffer.toString();
		}
	}

	public String get() {
		if (hasMoreLines()) {
			return content[index++];
		}
		return null;

	}

	public boolean hasMoreLines() {
		return index < content.length;
	}

}
